package com.wulian.service;

import com.wulian.entities.Record;
import org.hyperledger.fabric.gateway.ContractException;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.cert.CertificateException;
import java.util.List;
import java.util.concurrent.TimeoutException;

/**
 * @author xf
 * @date 2021/3/23 上午 12:51
 * @Description
 */
public interface FabricService {

    String getRecordById(Long id) throws IOException, CertificateException, InvalidKeyException, ContractException, TimeoutException, InterruptedException;

    Boolean addRecordToFabric(Record record) throws CertificateException, InvalidKeyException, IOException, InterruptedException, TimeoutException, ContractException;
}
